/* eslint-disable-next-line */
import * as options from './options'

function options2Maps(options) {
  return Object.keys(options).reduce((a, b) => {
    a[b] = options2Map(options[b]);
    return a;
  }, {});
}

export const options2Map = (opts = []) => {
  return opts.reduce((a, b) => {
    a[b.value] = b.label;
    return a;
  }, {});
};

const maps: any = options2Maps(options);

export default maps;
